<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>企业注册</title>

		<meta name="description" content="Common form elements and layouts" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="static/assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="static/assets/font-awesome/4.5.0/css/font-awesome.min.css" />

		<!-- page specific plugin styles -->
		<link rel="stylesheet" href="static/assets/css/jquery-ui.custom.min.css" />
		<link rel="stylesheet" href="static/assets/css/chosen.min.css" />
		<link rel="stylesheet" href="static/assets/css/bootstrap-datepicker3.min.css" />
		<link rel="stylesheet" href="static/assets/css/bootstrap-timepicker.min.css" />
		<link rel="stylesheet" href="static/assets/css/daterangepicker.min.css" />
		<link rel="stylesheet" href="static/assets/css/bootstrap-datetimepicker.min.css" />
		<link rel="stylesheet" href="static/assets/css/bootstrap-colorpicker.min.css" />

		<!-- text fonts -->
		<link rel="stylesheet" href="static/assets/css/fonts.googleapis.com.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="static/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

		<!--[if lte IE 9]>
			<link rel="stylesheet" href="static/assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
		<![endif]-->
		<link rel="stylesheet" href="static/assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="static/assets/css/ace-rtl.min.css" />

		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="static/assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script src="static/assets/js/ace-extra.min.js"></script>
        <script language="javascript" type="text/javascript" src="static/datepicker/WdatePicker.js"></script>

		<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

		<!--[if lte IE 8]>
		<script src="static/assets/js/html5shiv.min.js"></script>
		<script src="static/assets/js/respond.min.js"></script>
		<![endif]-->
				<!-- bootstrap file input 引入文件 -->
		<link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<link href="static/bootstrap/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
		<script src="static/jquery/jquery-1.9.1.js"></script> 
		<!-- canvas-to-blob.min.js is only needed if you wish to resize images before upload.
		     This must be loaded before fileinput.min.js -->
		<!--用于上传图片之前调整大小  -->
		<script src="static/bootstrap/js/plugins/canvas-to-blob.min.js" type="text/javascript"></script>
		<!-- sortable.min.js is only needed if you wish to sort / rearrange files in initial preview.
		     This must be loaded before fileinput.min.js -->
		<!--预览时，排序功能  ||位于fileinput.min.js前-->
		<script src="static/bootstrap/js/plugins/sortable.min.js" type="text/javascript"></script>
		<!-- purify.min.js is only needed if you wish to purify HTML content in your preview for HTML files.
		     This must be loaded before fileinput.min.js -->
		<!--HTML文件中预览功能 || 位于fileinput.min.js前-->
		<script src="static/bootstrap/js/plugins/purify.min.js"
			type="text/javascript"></script>
		<!-- the main fileinput plugin file -->
		<!--文件上传主插件  -->
		<script src="static/bootstrap/js/fileinput.min.js"></script>
		<!-- bootstrap.js below is needed if you wish to zoom and view file content 
		     in a larger detailed modal dialog -->
		<!--调焦和查看文件内容细节功能  -->
		<script src="static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
		<!-- optionally if you need a theme like font awesome theme you can include 
		    it as mentioned below -->
		<!--主题功能  -->
		<script src="static/bootstrap/themes/fa/theme.js"></script>
		<!-- optionally if you need translation for your language then include 
		    locale file as mentioned below -->
		<!--多国语言功能  -->
		<script src="static/bootstrap/js/locales/zh.js"></script>
		
		<!--百度编辑器引入文件  -->
		 <script type="text/javascript" charset="utf-8" src="static/ueditor/ueditor.config.js"></script>
         <script type="text/javascript" charset="utf-8" src="static/ueditor/ueditor.all.min.js"> </script>
        <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
        <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
         <script type="text/javascript" charset="utf-8" src="static/ueditor/lang/zh-cn/zh-cn.js"></script>
		
</head>

	<body class="no-skin">
		

		<div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
				try{ace.settings.loadState('main-container')}catch(e){}
			</script>

			<div class="main-content">
				<div class="main-content-inner">
					<div class="page-content">
					

						<div class="page-header">
							<h1>
								企业注册
								<small>
									<i class="ace-icon fa fa-angle-double-right"></i>
									注册表单
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-10">
								<!-- PAGE CONTENT BEGINS -->
								<form class="form-horizontal" role="form" action="/enterprise/insert" method="post" enctype="multipart/form-data">
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 企业全称： </label>

										<div class="col-sm-3">
											<input type="text" name="ente_name" id="form-field-1" placeholder="企业全称" class="col-xs-12 col-sm-12" />
										</div>
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 住所： </label>

										<div class="col-sm-3">
											<input type="text" name="ente_dence" id="form-field-1" placeholder="住所" class="col-xs-12 col-sm-12" />
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 企业法人： </label>

										<div class="col-sm-3">
											<input type="text" name="ente_person" id="form-field-1" placeholder="企业法人" class="col-xs-12 col-sm-12" />
										</div>
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 联系电话： </label>

										<div class="col-sm-3">
											<input type="text" name="ente_telephone" id="form-field-1" placeholder="联系电话" class="col-xs-12 col-sm-12" />
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 企业注册时间： </label>

										<div class="col-sm-3">
											<input type="text" name="stration_time" id="form-field-1" placeholder="企业注册时间" class="col-xs-12 col-sm-12" onClick="WdatePicker()"/>
										</div>
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 有效期至： </label>

										<div class="col-sm-3">
											<input type="text" name="use_time" id="form-field-1" placeholder="有效期至" class="col-xs-12 col-sm-12" onClick="WdatePicker()"/>
										</div>
										
									</div>	
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right" name="" for="form-field-1" > 营业执照： </label>

										<div class="col-sm-6">
											<input id="input-41" name="licence" type="file" class="file-loading">
										</div>

									</div>
									<div class="form-group">		   
										<label class="col-sm-2 control-label no-padding-right" for="form-field-1" > 企业轮播图： </label>	
										<div class="col-sm-8">
											<input id="input-44" name="img_lb" multiple="multiple" type="file" class="file-loading">
										</div>
						
									</div>	
								
									<div class="form-group">
									   <label class="col-sm-2 control-label no-padding-right" for="form-field-1" > 企业简介： </label>
									   <div class="col-sm-8">
									     <textarea  id="editor" name="ente_surp" style="width:100%;height:250px;"></textarea>	   
									   </div>	
									</div>											
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="button" onclick="formSubmit()">
												<i class="ace-icon fa fa-check bigger-110"></i>
												提交
											</button>
											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset">
												<i class="ace-icon fa fa-undo bigger-110"></i>
												返回
											</button>
										</div>
									</div>

								</form>
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->

			
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->
		<!-- <script src="static/assets/js/jquery-2.1.4.min.js"></script> -->

		<!-- <![endif]-->

		<!--[if IE]>
<script src="static/assets/js/jquery-1.11.3.min.js"></script>
<![endif]-->
		<script src="static/assets/js/bootstrap.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="static/assets/js/excanvas.min.js"></script>
		<![endif]-->
		

		<!-- ace scripts -->
		<script src="static/assets/js/ace-elements.min.js"></script>
		<script src="static/assets/js/ace.min.js"></script>

		<!-- inline scripts related to this page -->
	<script>
	//加载图片上传组件
		$(document).on('ready', function() {
			$("#input-41").fileinput({
				language: "zh",//用于设置语言
				showUpload: false, //上传图标
				showUploadedThumbs: false,//图片上的上传图标
				//maxFileCount: 10,
				//uploadUrl: 'enterprise/savePicture',
				allowedFileTypes : [ "image" ]
			});
		});
	//加载多图上传组件
		$(document).on('ready', function() {
		    $("#input-44").fileinput({
		    	language: "zh",//用于设置语言
		        uploadUrl: '#',
		        showUpload: false, //上传图标
		        showUploadedThumbs: false,//图片上的上传图标
		        maxFilePreviewSize: 10240
		    });
		});
		
		//加载百度编辑器
		var ue = UE.getEditor('editor');
		//提交主表单
		function formSubmit(){
			
			document.forms[0].submit();
		}
	</script>

</body>
</html>
